package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.logistic.domain.NetworkGrossPayroll;
import com.ruoyi.logistic.domain.NetworkManEffect;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.mapper.NetworkGrossPayrollMapper;
import com.ruoyi.logistic.mapper.NetworkManEffectMapper;
import com.ruoyi.logistic.service.NetworkManEffectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NetworkManEffectServiceImpl implements NetworkManEffectService {
    @Autowired
    private NetworkGrossPayrollMapper networkGrossPayrollMapper;
    @Autowired
    private NetworkManEffectMapper networkManEffectMapper;
    @Override
    public List<NetworkGrossPayroll> collect(PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return networkGrossPayrollMapper.collect();
    }

    @Override
    public NetworkManEffect collectManEffect(String month) {
        return networkManEffectMapper.collectManEffect(month);
    }

   }
